\hypertarget{code__example_8c}{\section{code\-\_\-example.\-c \-File \-Reference}
\label{code__example_8c}\index{code\-\_\-example.\-c@{code\-\_\-example.\-c}}
}


\-A \-Documented file.  


\subsection*{\-Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{code__example_8c_afa99ec4acc4ecb2dc3c2d05da15d0e3f}{\-M\-A\-X}(a, b)~(((a)$>$(b))?(a)\-:(b))
\begin{DoxyCompactList}\small\item\em \-A macro that returns the maximum of {\itshape a\/} and {\itshape b\/}. test. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef unsigned int \hyperlink{code__example_8c_ae1e6edbbc26d6fbc71a90190d0266018}{\-U\-I\-N\-T32}
\begin{DoxyCompactList}\small\item\em \-A type definition for a . \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{code__example_8c_a2c4414339f388561554c2deab11a1a07}{open} (const char $\ast$, int)
\begin{DoxyCompactList}\small\item\em \-Opens a file descriptor. \end{DoxyCompactList}\item 
int \hyperlink{code__example_8c_ae152484c890a24e4d9b4980e7b965be0}{close} (int)
\begin{DoxyCompactList}\small\item\em \-Closes the file descriptor {\itshape fd\/}. \end{DoxyCompactList}\item 
size\-\_\-t \hyperlink{code__example_8c_af2a3ea719b83f672637febdd87c36c36}{write} (int, const char $\ast$, size\-\_\-t)
\begin{DoxyCompactList}\small\item\em \-Writes {\itshape count\/} bytes from {\itshape buf\/} to the filedescriptor {\itshape fd\/}. \end{DoxyCompactList}\item 
\hypertarget{code__example_8c_a8f3ccabcba7278d8eeb1e50027c4e052}{int {\bfseries sum} (int, int)}\label{code__example_8c_a8f3ccabcba7278d8eeb1e50027c4e052}

\item 
\hypertarget{code__example_8c_a03998cb17222cac7c3ad7069f17892b6}{int {\bfseries sum} (var1, var2)}\label{code__example_8c_a03998cb17222cac7c3ad7069f17892b6}

\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{code__example_8c_ad65a8842cc674e3ddf69355898c0ecbf}{errno}
\begin{DoxyCompactList}\small\item\em \-Contains the last error code. \end{DoxyCompactList}\item 
\hypertarget{code__example_8c_a799f44203647e4c53bdb0386aa95680f}{int {\bfseries var1}}\label{code__example_8c_a799f44203647e4c53bdb0386aa95680f}

\item 
\hypertarget{code__example_8c_ac0da06d47d79ad4b9fb1c0eaf1118c3f}{int {\bfseries var2}}\label{code__example_8c_ac0da06d47d79ad4b9fb1c0eaf1118c3f}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-A \-Documented file. \-Details. 

\subsection{\-Define \-Documentation}
\hypertarget{code__example_8c_afa99ec4acc4ecb2dc3c2d05da15d0e3f}{\index{code\-\_\-example.\-c@{code\-\_\-example.\-c}!\-M\-A\-X@{\-M\-A\-X}}
\index{\-M\-A\-X@{\-M\-A\-X}!code_example.c@{code\-\_\-example.\-c}}
\subsubsection[{\-M\-A\-X}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-M\-A\-X}(
\begin{DoxyParamCaption}
\item[{}]{a, }
\item[{}]{b}
\end{DoxyParamCaption}
)~(((a)$>$(b))?(a)\-:(b))}}\label{code__example_8c_afa99ec4acc4ecb2dc3c2d05da15d0e3f}


\-A macro that returns the maximum of {\itshape a\/} and {\itshape b\/}. test. 

\-Details. 

\subsection{\-Typedef \-Documentation}
\hypertarget{code__example_8c_ae1e6edbbc26d6fbc71a90190d0266018}{\index{code\-\_\-example.\-c@{code\-\_\-example.\-c}!\-U\-I\-N\-T32@{\-U\-I\-N\-T32}}
\index{\-U\-I\-N\-T32@{\-U\-I\-N\-T32}!code_example.c@{code\-\_\-example.\-c}}
\subsubsection[{\-U\-I\-N\-T32}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned int {\bf \-U\-I\-N\-T32}}}\label{code__example_8c_ae1e6edbbc26d6fbc71a90190d0266018}


\-A type definition for a . 

\-Details. 

\subsection{\-Function \-Documentation}
\hypertarget{code__example_8c_ae152484c890a24e4d9b4980e7b965be0}{\index{code\-\_\-example.\-c@{code\-\_\-example.\-c}!close@{close}}
\index{close@{close}!code_example.c@{code\-\_\-example.\-c}}
\subsubsection[{close}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf close} (
\begin{DoxyParamCaption}
\item[{int}]{fd}
\end{DoxyParamCaption}
)}}\label{code__example_8c_ae152484c890a24e4d9b4980e7b965be0}


\-Closes the file descriptor {\itshape fd\/}. 


\begin{DoxyParams}{\-Parameters}
{\em fd} & \-The descriptor to close. \\
\hline
\end{DoxyParams}
\hypertarget{code__example_8c_a2c4414339f388561554c2deab11a1a07}{\index{code\-\_\-example.\-c@{code\-\_\-example.\-c}!open@{open}}
\index{open@{open}!code_example.c@{code\-\_\-example.\-c}}
\subsubsection[{open}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf open} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{pathname, }
\item[{int}]{flags}
\end{DoxyParamCaption}
)}}\label{code__example_8c_a2c4414339f388561554c2deab11a1a07}


\-Opens a file descriptor. 


\begin{DoxyParams}{\-Parameters}
{\em pathname} & \-The name of the descriptor. \\
\hline
{\em flags} & \-Opening flags. \\
\hline
\end{DoxyParams}
\hypertarget{code__example_8c_af2a3ea719b83f672637febdd87c36c36}{\index{code\-\_\-example.\-c@{code\-\_\-example.\-c}!write@{write}}
\index{write@{write}!code_example.c@{code\-\_\-example.\-c}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}size\-\_\-t {\bf write} (
\begin{DoxyParamCaption}
\item[{int}]{fd, }
\item[{const char $\ast$}]{buf, }
\item[{size\-\_\-t}]{count}
\end{DoxyParamCaption}
)}}\label{code__example_8c_af2a3ea719b83f672637febdd87c36c36}


\-Writes {\itshape count\/} bytes from {\itshape buf\/} to the filedescriptor {\itshape fd\/}. 


\begin{DoxyParams}{\-Parameters}
{\em fd} & \-The descriptor to write to. \\
\hline
{\em buf} & \-The data buffer to write. \\
\hline
{\em count} & \-The number of bytes to write. \\
\hline
\end{DoxyParams}


\subsection{\-Variable \-Documentation}
\hypertarget{code__example_8c_ad65a8842cc674e3ddf69355898c0ecbf}{\index{code\-\_\-example.\-c@{code\-\_\-example.\-c}!errno@{errno}}
\index{errno@{errno}!code_example.c@{code\-\_\-example.\-c}}
\subsubsection[{errno}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf errno}}}\label{code__example_8c_ad65a8842cc674e3ddf69355898c0ecbf}


\-Contains the last error code. 

\begin{DoxyWarning}{\-Warning}
\-Not thread safe! 
\end{DoxyWarning}
